package com.dk.logc.utils;

public class LogicException extends RuntimeException {
    private ErrorCode errorCode;
    private static final long serialVersionUID = -842432658713803831L;

    public LogicException(ErrorCode errorCode) {
        super(errorCode.getMsg());
        this.errorCode = errorCode;
    }

    public synchronized Throwable fillInStackTrace() {
        return this;
    }

    public ErrorCode getErrorCode() {
        return this.errorCode;
    }
}
